package com.craftplay.model;

import java.util.Date;

public class OfferInfo {

    private Integer offerId;

    private Integer userId;

    private String imgUrl;

    private String userName;

    private Integer sex;

    private Integer offerPrice;

    private Integer placeProvided;

    private String placeFee;

    private Integer tool;

    private String toolFee;

    private Integer timeLen;

    private String leaveWord;

    private Integer status;

    private Date createdTime;


    public Integer getOfferId() {
        return offerId;
    }

    public void setOfferId(Integer offerId) {
        this.offerId = offerId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getOfferPrice() {
        return offerPrice;
    }

    public void setOfferPrice(Integer offerPrice) {
        this.offerPrice = offerPrice;
    }

    public Integer getPlaceProvided() {
        return placeProvided;
    }

    public void setPlaceProvided(Integer placeProvided) {
        this.placeProvided = placeProvided;
    }

    public String getPlaceFee() {
        return placeFee;
    }

    public void setPlaceFee(String placeFee) {
        this.placeFee = placeFee;
    }

    public Integer getTool() {
        return tool;
    }

    public void setTool(Integer tool) {
        this.tool = tool;
    }

    public String getToolFee() {
        return toolFee;
    }

    public void setToolFee(String toolFee) {
        this.toolFee = toolFee;
    }

    public Integer getTimeLen() {
        return timeLen;
    }

    public void setTimeLen(Integer timeLen) {
        this.timeLen = timeLen;
    }

    public String getLeaveWord() {
        return leaveWord;
    }

    public void setLeaveWord(String leaveWord) {
        this.leaveWord = leaveWord;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OfferInfo offerInfo = (OfferInfo) o;

        return userId.equals(offerInfo.userId);
    }

    @Override
    public int hashCode() {
        return userId.hashCode();
    }
}
